package com.yazdankhah.dal;



import java.util.List;

/*
 * This class simulates a generic master detail information.
 * @author Ahmad Yazdankhah
 * @version 1.0
 */
public class MasterDetail<M, D> {
    
// ........................ D A T A   F I E L D S ............................//
// ............. G L O B A L   P R I V A T E   C O N S T A N T S .............//
// .............. G L O B A L   P U B L I C   C O N S T A N T S ..............//
// ................. G L O B A L   P R I V A T E   V A R S ...................//
    private M master;
    private List<D> detailArr;
    
// ........................ C O N S T R U C T O R S ..........................//
    public MasterDetail() {
        
        this.master = null;
        this.detailArr = null;
        
    } //constructor
    
    public MasterDetail(M master, List<D> detailArr) {
        
        this.master = master;
        this.detailArr = detailArr;
        
    } //constructor
    
    
    
//.............................. G E T T E R S ...............................//
    public List<D> getDetailArr() {
        return detailArr;
    }


    public M getMaster() {
        return master;
    }

    
//.............................. S E T T E R S ...............................//
// ...................... P R I V A T E   M E T H O D S ......................//
// ...................... P U B L I C   M E T H O D S ........................//
// ........................ M A I N   M E T H O D ............................//
    
} 
